package cn.hutool.postfix.generator.lang;

import cn.hutool.core.collection.CollUtil;

/**
 * @author liuxiongkang
 */
public class Scala extends BaseLang {

	@Override
	public String paramTypeConvert(String type) {
		String typeTarget = super.paramTypeConvert(type);
		return "ARRAY".equals(typeTarget) ? "scala.Array" : typeTarget;
	}

	@Override
	public String classConvert(String clazzName) {
		return clazzName.substring(clazzName.lastIndexOf(".") + 1);
	}

	@Override
	public boolean isExclude(String type, String method) {
		return CollUtil.contains(javaExcludes.get(type), method);
	}
}
